|
MAKE FILE FROM MEMBLOCK
Create a file from a memblock, allowing you to directly create an arrangement of bytes in a memblock and create an exact file layout with no additional bytes written.
MAKE FILE FROM MEMBLOCK File Number, Memblock Number
File Number
Integer
The file number
Memblock Number
Integer
The memblock number
This command does not return a value.
MAKE MEMBLOCK 1,1024
WRITE MEMBLOCK BYTE 1,0,asc("m")
WRITE MEMBLOCK BYTE 1,1,asc("a")
WRITE MEMBLOCK BYTE 1,2,asc("l")
WRITE MEMBLOCK BYTE 1,3,asc("c")
WRITE MEMBLOCK BYTE 1,4,asc("o")
WRITE MEMBLOCK BYTE 1,5,asc("l")
WRITE MEMBLOCK BYTE 1,6,asc("m")
if file exist("samspade.txt")=1 then delete file "samspade.txt"
open to write 1,"samspade.txt"
make file from memblock 1,1
close file 1
delete memblock 1
end
FILE Commands Menu
Index
|